<template>
  <el-form label-width="100px">
    <CommonProps />
    <el-form-item label="多选选项">
      <el-input
        v-model="fs.getProps().options"
        type="textarea"
        :autosize="{ minRows: 2, maxRows: 10 }"
        placeholder="回车分隔选项"
      ></el-input>
    </el-form-item>
    <el-form-item label="默认选项">
      <el-input v-model="fs.getProps().defaultVal" placeholder="逗号分隔选项" />
    </el-form-item>
    <el-form-item label="排列方式">
      <el-radio-group v-model="fs.getProps().align" size="small">
        <el-radio-button label="horizontal">横向</el-radio-button>
        <el-radio-button label="vertical">纵向</el-radio-button>
      </el-radio-group>
    </el-form-item>
    <el-form-item label="选项风格">
      <el-radio-group v-model="fs.getProps().style" size="small">
        <el-radio-button label="default">默认</el-radio-button>
        <el-radio-button label="button">按钮</el-radio-button>
      </el-radio-group>
    </el-form-item>
    <el-form-item label="按钮大小" v-show="fs.getProps().style == 'button'">
      <el-radio-group v-model="fs.getProps().size" size="small">
        <el-radio-button label="large">较大</el-radio-button>
        <el-radio-button label="default">中等</el-radio-button>
        <el-radio-button label="small">较小</el-radio-button>
      </el-radio-group>
    </el-form-item>
    <CommonPropsTwo :readonly="false" />
  </el-form>
</template>

<script setup lang="ts">
import CommonProps from '../../common-props/Props.vue'
import CommonPropsTwo from '../../common-props/PropsTwo.vue'
import { ElForm, ElFormItem, ElInput, ElRadioGroup, ElRadioButton } from 'element-plus'
import { useFlowStore } from '@/stores/flow'

const fs = useFlowStore()
</script>

<style lang="scss" scoped></style>
